#!/bin/sh
APPDIR=`dirname $0`;


GWTDIR=/usr/local/gwt-linux-1.5.2

CLASSPATH="$APPDIR/src:$APPDIR/bin.src";
CLASSPATH="$CLASSPATH:../Domain/src:../Domain/bin.src";
CLASSPATH="$CLASSPATH:../DataServer/src:../DataServer/bin.src";
CLASSPATH="$CLASSPATH:../Utils/src:../Utils/bin.src";
CLASSPATH="$CLASSPATH:$GWTDIR/gwt-user.jar:$GWTDIR/gwt-dev-linux.jar";
for u in `ls ../Utils/lib/*.jar`; do
	CLASSPATH="$CLASSPATH:$u";
done;

echo $CLASSPATH;

java  -Xmx256M -cp $CLASSPATH com.google.gwt.dev.GWTCompiler -out "$APPDIR/www" "$@" org.nicocube.airain.gwt.AirainWeb;
